package top.yxqz.spring.ioc.pojo;

/**
 * @author: 余小小
 * @date: 2023/4/4
 * @description：小狗类
 */
public class Dog {
    private String dogName;//狗的名字
    private Integer age;//年龄
    private String[] action;//行为

    public Dog() {
    }

    public Dog(String dogName, Integer age, String[] action) {
        this.dogName = dogName;
        this.age = age;
        this.action = action;
    }

    /**
     * 获取
     * @return dogName
     */
    public String getDogName() {
        return dogName;
    }

    /**
     * 设置
     * @param dogName
     */
    public void setDogName(String dogName) {
        this.dogName = dogName;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取
     * @return action
     */
    public String[] getAction() {
        return action;
    }

    /**
     * 设置
     * @param action
     */
    public void setAction(String[] action) {
        this.action = action;
    }

    public String toString() {
        return "Dog{dogName = " + dogName + ", age = " + age + ", action = " + action + "}";
    }
}
